package app.base.modules;

import java.util.Map;

public abstract class Module {
	public String version = "1.0";
	
	public String name = "Module's Name";
	public String desc = "Module's Desc.";
	
	//Map<String, Object> params: 外部传入到模块内部的参数
	//返回模块的WebPage块内容
	public abstract String getWebPageBlockContent(Map<String, Object> params) throws Throwable;

	// 安装/卸载模块
	public void install() throws Throwable {
		
	}
	
	public void uninstall() throws Throwable {
		
	}
	
	//启用/禁用模块
	public void active() throws Throwable {
		
	}
	
	public void inactive() throws Throwable {
		
	}
}
